use std::time::Duration;
use tokio::sync::oneshot;

#[tokio::test]
async fn timeout_test() {
    let (sender, receive) = oneshot::channel::<i32>();
    sender.send(23).unwrap();

    tokio::select! {
        data = receive => {
            println!("Got data: {:?}", data);
        }
        _ = tokio::time::sleep(Duration::from_millis(100)) => {

        }
    };
}